package com.etc.admin.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.etc.entity.Room;

public interface RoomMapper {

    Room selectByPrimaryKey(Integer roomno);
    Room selectByid(Integer roomid);
  

  //根据房间id修改房间的状态
    int upStatusById(@Param("roomid")int roomid,@Param("roomstatus")int roomstatus);

  //分页
    public List<Room> getRoomByPage(@Param("start")int start, @Param("pageSize")int pageSize, @Param("content")String content);
    //统计所有条数
    public int getTotal(String content);
    
  //退房和办理入住时，根据程序需要，更改房间的状态
    int upStatusByRoomno(@Param("roomno")int roomno,@Param("roomstatus")int roomstatus);
    
  //修改房间的价格
    int upsalaryByRoomtype(@Param("roomtype")int roomtype,@Param("roomsalary")int roomsalary);
}